//
//  KABMallShopCartTCell.h
//  kabu
//
//  Created by XiangDongMBP on 2017/2/20.
//  Copyright © 2017年 East. All rights reserved.
//

#import <UIKit/UIKit.h>

@class KABMallShopCartTCell;
@protocol KABMallShopCartTCellDelegate <NSObject>
@optional
- (void)kABMallShopCartTCell:(KABMallShopCartTCell *)cell selBtnTapped:(UIButton *)btn;
- (void)kABMallShopCartTCell:(KABMallShopCartTCell *)cell editBtnTapped:(UIButton *)btn;
- (void)kABMallShopCartTCell:(KABMallShopCartTCell *)cell decreaseBtnTapped:(UIButton *)btn;
- (void)kABMallShopCartTCell:(KABMallShopCartTCell *)cell increaseBtnTapped:(UIButton *)btn;
@end

@class KABMallProDetail;
@interface KABMallShopCartTCell : UITableViewCell

@property (weak, nonatomic) IBOutlet UIButton *selBtn;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *selBtnWidthConstraint;

@property (weak, nonatomic) IBOutlet UIImageView *productImgView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *propertyLabel;
@property (weak, nonatomic) IBOutlet UIButton *editBtn;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *cntLabel;

@property (weak, nonatomic) IBOutlet UIView *cntBgView;
@property (weak, nonatomic) IBOutlet UIButton *decreaseBtn;
@property (weak, nonatomic) IBOutlet UIButton *increaseBtn;
@property (weak, nonatomic) IBOutlet UITextField *cntTextField;

@property (weak, nonatomic) id<KABMallShopCartTCellDelegate>delegate;

- (void)configViewWithProDetail:(KABMallProDetail *)product couldSel:(BOOL)couldSel isEdit:(BOOL)isEdit;

@end

@class KABMallOrdProductItem;
@interface KABMallShopCartTCell (MallOrderList)
- (void)configViewWithOrderProItem:(KABMallOrdProductItem *)product couldSel:(BOOL)couldSel isEdit:(BOOL)isEdit;
@end

